<template>
	<!-- 编辑弹窗 -->
	<a-modal title="打分项管理" 
	:visible="visible" 
	:width="1010" 
	@cancel="() => { $emit('cancel') }"
	@ok="submit"
	>
		<a-form>
			<a-row :gutter="24">
				<a-col :md="24" :sm="24">
					<a-form-item label="打分项名称" 
					:labelCol="{ lg: { span: 1 }, sm: { span: 1 } }" 
					:wrapperCol="{ lg: { span: 23 }, sm: { span: 23 } }">
						<BaseTextarea />
					</a-form-item>
				</a-col>
				<a-col :md="12" :sm="12">
					<a-form-item label="此项分值" 
					:labelCol="{ lg: { span: 5 }, sm: { span: 5 } }" 
					:wrapperCol="{ lg: { span: 17 }, sm: { span: 17 } }">
						<a-date-picker   style="width: 100%"/>
					</a-form-item>
				</a-col>
				<a-col :md="12" :sm="12">
				  <a-form-item label="所属分类"
				               :labelCol="{lg: {span: 5}, sm: {span:5}}"
				               :wrapperCol="{lg: {span: 17}, sm: {span: 17} }">
				   <a-select placeholder="请选择" @select="handleChange">
				     <a-select-option 
					 v-for="(item,index) in classification" 
					 :value="item.value"
					 :key="index"
					 >
					 {{item.name}}
					 </a-select-option>
				   </a-select>
				  </a-form-item>
				</a-col>
			</a-row>
		</a-form>
	</a-modal>
</template>

<script>
	export default{
		props:{
			visible: {
			  type: Boolean,
			},
			model: {
			  type: Object,
			  default: () => null
			}
		},
		data(){
			return{
				objFrom:{},
				classification:[
					{
						value:0,
						name:'否决项'
					},
					{
						value:1,
						name:'一· 编制规范，施工安排合理'
					},
					{
						value:2,
						name:'二· 施工准备和资源计划'
					},
					{
						value:3,
						name:'三· 施工方法'
					},
					{
						value:4,
						name:'四· 资源管理'
					},
				]
			}
		},
		methods:{
			handleChange() {},
			submit(){
				this.$emit('ok',this.objFrom)
			},
		}
	}
</script>

<style>
</style>
